header {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 65px;
  background-color: #fff;

  .header-container {
    display: flex;
    height: 100%;
  }

  .logo {
    width: 280px;
    text-align: center;

    a {
      display: block;
      height: 65px;
      line-height: 65px;
      color: #333;
      text-decoration: none;
      font-size: 18px;
      font-weight: 500;
      white-space: nowrap;
      outline: none;
    }

    img {
      height: 32px;
      margin-right: 10px;
      margin-top: -5px;
    }

    .logo-version {
      font-size: 12px;
      color: #999;
      margin-left: 3px;
    }
  }

  .search {
    flex: auto;
    display: flex;
    align-items: center;
    height: 33px;
    padding: 0 6px;

    .za-icon {
      color: #999;
      font-size: 18px;
    }

    input {
      display: inline-block;
      background: transparent;
      border: 0;
      outline: 0 none;
      width: 100%;
      padding-left: 6px;

      &::placeholder {
        color: #999;
      }
    }

    .algolia-autocomplete {
      flex: auto;
      line-height: 1;

      .ds-dropdown-menu {
        font-size: 14px;
        border: none;
        box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.15);

        [class^="ds-dataset-"] {
          border: none;
        }

        &:before {
          display: none;
        }
      }

      .algolia-docsearch-suggestion--title {
        color: #464646;
      }

      .algolia-docsearch-suggestion--highlight {
        color: #00bc70;
      }
    }
  }

  nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 60px;

    ul {
      list-style: none;
      margin: 0;
      padding: 0;
      height: 100%;

      li {
        display: inline-block;
        height: 65px;
        line-height: 65px;
        text-align: center;
        font-size: 16px;
        color: #999;

        a {
          display: block;
          padding: 0 30px;
          color: #333;
          cursor: pointer;
          transition: color 0.3s ease-in;

          &.active,
          &:hover {
            color: #00bc70;
          }
        }
      }
    }

    .lang,
    .github {
      margin-left: 30px;
    }
  }

  .header-icon {
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;

    &-menu,
    &-more {
      width: 65px;
    }
  }
}

.header-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 280px;
  background-color: #fff;
  padding: 30px 0 50px;
  overflow-y: scroll;

  // &__close {
  //   position: absolute;
  //   top: 30px;
  //   right: -40px;
  //   width: 40px;
  //   height: 40px;
  //   border-radius: 8px;
  //   background: #fff;
  // }
}

.header-nav {
  width: 150px;
  background-color: #fff;
}

@media (max-width: 1000px) {
  header {
    .logo {
      flex: 1;
    }

    .search {
      display: none;
    }

    nav {
      display: none;
    }

    .header-icon {
      display: flex;
    }
  }
}
